﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Oplug.CoolTower.DTO
{
    public class SysConfig
    {
        public decimal AutoRunHour { get; set; }
        public string DBIP { get; set; }
        public int DBPort { get; set; }
        public string DBUser { get; set; }
        public string DBPsw { get; set; }
        public string Database { get; set; }
        private string dbConn;
        public string DBConn { 
            get { return dbConn; }
            set { dbConn = string.Format("data source={0},{1};initial catalog={2};user id={3};password={4};", DBIP, DBPort, Database, DBUser, DBPsw); }
        }
        public string Company { get; set; }
        public string Version { get; set; }
        public string AutoUpdateURL { get; set; }
        public string EpicorCfgPath { get; set; }

    }
}
